css equivalent of table-row [closed]
Posted
by
SpashHit
on Pro Webmasters
See other posts from Pro Webmasters
or by SpashHit
Published on 2011-02-25T16:14:42Z
Indexed on
2011/02/25
23:34 UTC
Read the original article
Hit count: 385
css
I am trying to shift my style away from using tables to control formatting, but I haven't seen a simple css solution that does exactly the same thing as
<table><tr><td>aribitrary-html-A</td><td>aribitrary-html-A</td></tr><table>
All I want is to make sure aribitrary-html-A
and aribitrary-html-B
are aligned horizontally. I have tried various CSS concoctions using display: inline
, clear: none
, and float: left
but they all have unwanted side-effects of moving my content around, while the table-tr solution just does what I want, regardless of what's in the arbitrary HTML, and regardless of what is in HTML that contains my table.
Am I missing something?
© Pro Webmasters or respective owner